<%@ page import="evol.Korisnik" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main2">
		<g:set var="entityName" value="${message(code: 'korisnik.label', default: 'Korisnik')}" />
		<title>Login</title>
	</head>
	<body>
		
		<div class="body" >
			<h1 style="margin-left: 2%;">Login</h1>
			<g:if test="${flash.message }">
			<div class="message">${flash.message} </div>
			</g:if>
		</div>
		
		<g:form action="authenticate" method="post">
		<div class="dialog">
		<table>
            <tbody>            
              <tr class="prop">
                <td class="name">
                  <label for="user">Login:</label>
                </td>
                <td>
                  <input type="text" id="user" name="user"/>
                </td>
              </tr> 
          
              <tr class="prop">
                <td class="password">
                  <label for="password">Password:</label>
                </td>
                <td>
                  <input type="password" id="password" name="password"/>
                </td>
              </tr> 
            </tbody>
          </table>
		</div>
		
		<div class="buttons">
          <span class="button">
            <input style="margin-left: 15%" type="submit" value="Login" />
          	<input style="margin-left: 5%" value="Anonimni ulaz"  onclick='window.location.assign("${createLink(controller:"korisnik",action:"anon")}")'/>
          </span>
          
        </div>
		</g:form>
		
		
	</body>
</html>
